<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	<title><%= @site_title || 'Riggit Demo ---- A demo site of Riggit' %></title>

    <link href="/stylesheets/screen.css" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/admin.css" rel="stylesheet" type="text/css" />    
</head>

<body>
<div id="container">
	<div class="span-24 header">
    	<div class="span-10 logo">
        	<a href="<%= root_path %>">
                <span class="sitename"><%= site_name(@current_site) %></span>
            </a>
            <!--
			<img src="img/logo.png" height="41" width="149" alt="Code Green Logo" />
            -->            
        </div>
        
        <div class="span-7 search">
            <% form_tag :url => '/search' do %>
                <%= text_field_tag :query %>
                <%= submit_tag 'Search'.t %>
            <% end %>
        </div>
        
        <div class="span-5 append-1 last login">
            <% if logged_in? %>
                <%= current_user.login %>, <%= link_to 'Logout'.t, logout_path, :method => 'delete' %>
            <% else %>
                <%= link_to 'Login'.t, login_path %> | <%= link_to 'Register'.t, new_user_path %>
            <% end %>
        </div>
    </div>
    <!-- end of header -->
    
	<div class="span-24 container-content">
    	<div class="span-24">
    	    <div class='mainmenu'>
    	        <%= admin_mainmenu_tag %>
            </div>
		</div>
		<div class="span-24">
		    <div class="submenu">
                <%= eval "#{@mainmenu}_submenu_tag" if @mainmenu %>
            </div>
		</div>
		
    	<div class="span-23 content">
            	<%= yield %>
                
                <!--                                          
                <div id="tagcloud">
                    <div id="tagcloud-top"></div>
                    <div id="tagcloud-mid">
                    	<h2 class="posttitle">Find a Code</h2>
                        <div id="thecloud">
                        	
                        </div>
                    </div>
                    <div id="tagcloud-bot"></div>
                </div>
                -->
        </div>
            
        <div class="span-24">
            <div class="copy">
                <small>&copy; <%= site_name(@current_site) %>, 2007</small>            
            </div>
        </div>
    </div>
</div>
</body>
</html>

<script src="/javascripts/jquery.js" type="text/javascript"></script>
<script src="/javascripts/jquery-ui.js" type="text/javascript"></script>
<script src="/javascripts/jquery-fx.js" type="text/javascript"></script>
<script src="/javascripts/jrails.js" type="text/javascript"></script>
<script src="/javascripts/application.js" type="text/javascript"></script>
<%= yield :footer %>